package top.itlir.edc.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import top.itlir.edc.domain.PageBean;
import top.itlir.edc.domain.Promotion;

@Path("/promotion")
public interface IPromotionRemoteService {
	
	@GET
	@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
	@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
	@Path("/pageQuery/{page}/{pageSize}")
	public PageBean<Promotion> pageQuery(@PathParam("page")Integer page, @PathParam("pageSize")Integer pageSize);

	@GET
	@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
	@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
	@Path("/promotionById/{id}")
	public Promotion  promotionById(@PathParam("id")Integer id);
	
}
